From 58666c6210e791fb5fe3fb2c307cec4cb677b38d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 24 Apr 2019 13:25:32 +0200 Subject: [PATCH] testsuite: Add another gl renderer test --- testsuite/gsk/compare/shadow-in-opacity.node | 24 +++++++++++++++++++ testsuite/gsk/compare/shadow-in-opacity.png | Bin 0 -> 408 bytes testsuite/gsk/meson.build | 1 + 3 files changed, 25 insertions(+) create mode 100644 testsuite/gsk/compare/shadow-in-opacity.node create mode 100644 testsuite/gsk/compare/shadow-in-opacity.png diff --git a/testsuite/gsk/compare/shadow-in-opacity.node b/testsuite/gsk/compare/shadow-in-opacity.node new file mode 100644 index 0000000000..c9a6286c28 --- /dev/null +++ b/testsuite/gsk/compare/shadow-in-opacity.node @@ -0,0 +1,24 @@ + +/* + The opacity node should affect both the shadow node child + (the node that's NOT colored) and the actual shadow. + I.e. the output should be entirely empty. +*/ +opacity { + opacity: 0; + + child: shadow { + child: cross-fade { + start: color { + color: blue; + bounds: 0 0 100 100; + } + end: color { + color: red; + bounds: 100 100 100 100; + } + progress: 0; + } + shadows: green 200 0 0; + } +} diff --git a/testsuite/gsk/compare/shadow-in-opacity.png b/testsuite/gsk/compare/shadow-in-opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..64c2cabfd17aabffe75eac5f316c669730d22b2a GIT binary patch literal 408 zcmeAS@N?(olHy`uVBq!ia0y~yV4MJCpWt8vlE*~1KLS#0N#5=*4F5rJ!QSPQfl7Qm zT^vIy=Da=F2$W_xyx?bW`~!|qMi6HdkQf3VcpkGbFn-wZdof6(r>mdKI;Vst09*MU Ao&W#< literal 0 HcmV?d00001 diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index 71fe68dcd6..df7c5608c7 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -56,6 +56,7 @@ compare_render_tests = [ 'outset_shadow_offset_y', 'outset_shadow_rounded_top', 'outset_shadow_simple', + 'shadow-in-opacity', ] renderers = [ -- 2.30.2